import SEMRouter from 'sme-router'

//引入路由
//路由后面加上route
import loginRoute from '$r/login'
import advRoute from '$r/adv'
import advListRoute from '$r/advList'
import adminListRoute from '$r/adminList'


//实例化路由器对象  并且传入一个一级路由的作用区域
const router = new SEMRouter('app', 'html5')

window.router = router


//配置路由
router.route('/login',loginRoute)

router.route('/adv',advRoute)

router.route('/adv/adminList',adminListRoute)

router.route('/adv/advList',advListRoute )




